# -*- coding:utf-8 -*-

import json


def read_json_file(json_file, encoding="utf-8"):
    root = None
    with open(json_file, "r", encoding=encoding) as f:
        root = json.load(f)
    return root


def write_json_file(root, json_file):
    with open(json_file, "w") as f:
        json.dump(root, f, indent=4)
